SGPause
You can suspend or restart a record or preview operation by calling theSGPause
function. You supply a byte value that instructs the sequence grabber whether to pause or restart the current operation.
pascal ComponentResult SGPause (SeqGrabComponent s, Byte pause);
s
- Specifies the component instance that identifies your connection to the sequence grabber component. You obtain this value from the Component Manager's
OpenDefaultComponent
orOpenComponent
function.pause
- Instructs the sequence grabber whether to suspend or restart the current operation. The following values are valid:
seqGrabUnpause
- Restarts the current operation.
seqGrabPause
Pauses the current operation.seqGrabPauseForMenu
Pauses the current operation so that you may display a menu. Use this option only in preview mode, just before you call the Menu Manager'sMenuSelect
orPopUpMenuSelect
function. In this case, the sequence grabber may not pause all channels, depending upon the ability of the sequence grabber to play with acceptable quality. For example, sound channels may continue to play while video channels are paused.DESCRIPTION
TheSGPause
function does not release any system resources or temporary memory associated with the current operation. Consequently, it is generally much faster than using theSGStop
andSGStartRecord
functions or theSGStartPreview
function to suspend an operation.SPECIAL CONSIDERATIONS
When you restart the operation, the sequence grabber component may be unable to satisfy your request. This can occur, for example, if the user has moved the display window to a location that the digitizing hardware cannot support.RESULT CODES
File Manager errors
cantDoThatInCurrentMode -9402 Request invalid in current mode notEnoughMemoryToGrab -9403 Insufficient memory for record operation deviceCantMeetRequest -9408 Device cannot support grabber
Memory Manager errorsSEE ALSO
You may determine whether the sequence grabber is paused by calling theSGGetPause
function, which is described next.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help